######################################################
# 如下参数根据实际项目配置
global AccBias_mA    # 偏执电流mA
global SensoR_mohm # 20mΩ

global AgingCapacity_uAhrs
global ChargeVoltage_mV 
global ChargeCurrent_mA

global AEVoltage_mV 
global AECurrent_mA 

global ActiveEmpty_40_mAhrs

global Full_40_mAhrs
global Full_30_mAhrs
global Full_20_mAhrs
global Full_10_mAhrs
global Full_00_mAhrs

global AE_40_mAhrs
global AE_30_mAhrs
global AE_20_mAhrs
global AE_10_mAhrs
global AE_00_mAhrs


global SE_40_mAhrs
global SE_30_mAhrs
global SE_20_mAhrs
global SE_10_mAhrs
global SE_00_mAhrs

global RSGAIN
global RSTCO 


AccBias_mA=0.3125    # 偏执电流mA
SensoR_mohm = 20 # 20mΩ

AgingCapacity_mAhrs=3850
ChargeVoltage_mV = 3780  # 充满时电压mV
ChargeCurrent_mA=76      # 充满时电流

AEVoltage_mV = 2800      # 放电结束电压
AECurrent_mA = 750       # 放电结束电流

# ActiveEmpty_40_mAhrs=6
ActiveEmpty_40_mAhrs=60

Full_40_mAhrs=3850
Full_30_mAhrs=3830
Full_20_mAhrs=3800
Full_10_mAhrs=3780
Full_00_mAhrs=3750

AE_40_mAhrs=60
AE_30_mAhrs=100
AE_20_mAhrs=180
AE_10_mAhrs=310
AE_00_mAhrs=600


SE_40_mAhrs=10 # 无用
SE_30_mAhrs=20
SE_20_mAhrs=50
SE_10_mAhrs=100
SE_00_mAhrs=270

RSGAIN=1.03
RSTCO = 0